#include "tier.h"

const char *tiers[] = {"最强王者", "至尊星耀", "尊贵铂金", "白银渣渣",
                       "倔强青铜"};
const char *tier(int numGuess) {
  char **p = tiers;
  if (numGuess <= 0)
    return NULL;
  if (numGuess == 1)
    return *p;
  p++;
  if (numGuess <= 5)
    return *p;
  p++;
  if (numGuess <= 10)
    return *p;
  p++;
  if (numGuess <= 15)
    return *p;
  return *(++p);
}
